﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CuaHangLego.Model
{
    public class CTHD : BaseModel
    {
        public enum LoaiCTHD
        {
            CTHDBan, CTHDMua
        }
        public int MaHD { get; set; }
        public SanPhamKho SanPham { get; set; }
        public int SoLuong { get; set; }
        public LoaiCTHD Loai;

        public int DonGiaBan { get { return this.SanPham.GiaBan; } }
        public int DonGiaMua { get { return this.SanPham.GiaMua; } }

        public CTHD()
        {
        }

        public CTHD(SanPhamKho SanPham, int SoLuong, LoaiCTHD Loai)
        {
            this.SanPham = SanPham;
            this.SoLuong = SoLuong;
            this.Loai = Loai;
        }
    }
}
